Fragment
constructor(@IdRes containerId: Int, type: NavigationSpec.Fragment.Type = Type.Replace, tag: String? = null, backStackSettings: NavigationSpec.Fragment.BackStackSettings = BackStackSettings.DontAdd, animationSettings: NavigationSpec.Fragment.AnimationSettings? = null, getFragmentManager: ActivityLifecycleSubscribable.LifecycleManager.() -> FragmentManager = { fragmentManager }, createFragment: () -> Fragment)
Parameters
containerId
The identifier of the View containing the fragment
type
The Fragment.Type of transaction. Defaults to Fragment.Type.Replace
tag
Optional tag of the fragment transaction
backStackSettings
The BackStackSettings of the transaction. Defaults to BackStackSettings.DontAdd
animationSettings
Optional AnimationSettings for the transaction
getFragmentManager
Optional getter for the FragmentManager to handle showing the Fragment
createFragment
Function to create the androidx.fragment.app.Fragment